package com.mlethe.library.multi.demo;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.mlethe.library.multi.demo.databinding.ActivityMainBinding;

public class MainActivity extends AppCompatActivity {


    private ActivityMainBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());
        binding.payBtn.setOnClickListener(v -> {
            Intent intent = new Intent(this, PayActivity.class);
            startActivity(intent);
        });
        binding.loginBtn.setOnClickListener(v -> {
            Intent intent = new Intent(this, OauthActivity.class);
            startActivity(intent);
        });
        binding.shareBtn.setOnClickListener(v -> {
            Intent intent = new Intent(this, ShareActivity.class);
            startActivity(intent);
        });
    }
}